﻿<%@ Page Language="C#" MasterPageFile="~/Shared/EOS.Master" AutoEventWireup="true" 
    CodeBehind="KhachHangMuaDHMoi.aspx.cs" Inherits="EOSCRM.Web.Forms.DongHo.BaoCao.KhachHangMuaDHMoi" %>

<%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<%@ Register Assembly="EOSCRM.Controls" Namespace="EOSCRM.Controls" TagPrefix="eoscrm" %>
    
<asp:Content ID="head" ContentPlaceHolderID="headCPH" runat="server" />
<asp:Content ID="content" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <asp:UpdatePanel ID="upnlInfor" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <div class="crmcontainer">
                <table class="crmtable">
                    <tbody>
                        <tr>
                            <td class="crmcell right">Từ ngày</td>
                            <td class="crmcell">
                                <div class="left">
                                    <asp:TextBox ID="txtTuNgay" runat="server" Width="75px" tag="datevn" />
                                </div>
                                <div class="left">
                                    <strong> Đến </strong>
                                </div>
                                <div class="left">
                                    <asp:TextBox ID="txtDenNgay" runat="server" Width="75px" tag="datevn" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right">Phường</td>
                            <td class="crmcell">
                                <div class="left">
                                    <asp:DropDownList ID="ddlPHUONG" runat="server" />
                                </div>
                                <div class="left">
                                    <div class="right">Khu vực</div>
                                </div>
                                <div class="left">
                                    <asp:DropDownList ID="ddlKHUVUC" runat="server" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right">Người lập</td>
                            <td class="crmcell">
                                <div class="left">
                                    <asp:TextBox ID="txtNguoiLap" runat="server" />
                                </div>
                                <div class="left">
                                    <eoscrm:Button ID="btnReport" runat="server" OnClick="btnReport_Click" CssClass="report" />
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>   
            </div>    
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />            
    <asp:UpdatePanel ID="upnlReport" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <div class="crmcontainer" id="divCR" runat="server" visible="false">
                 <CR:CrystalReportViewer ID="rpViewer" runat="server" />       
            </div>            
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID ="rpViewer" />
            <asp:AsyncPostBackTrigger ControlID="btnReport" EventName="Click" /> 
        </Triggers>
    </asp:UpdatePanel>  
    <%--<div class="crmcontainer">
        <table class="crmtable">
            <tbody>
                <tr>
                    <td class="crmcell right">Từ ngày</td>
                    <td class="crmcell">
                        <div class="left">
                            <asp:TextBox ID="txtTuNgay" runat="server" Width="75px"  tag="datevn" />
                        </div>
                      
                        <div class="left">
                            <strong>Đến ngày</strong>
                        </div>
                        <div class="left">
                            <asp:TextBox ID="txtDenNgay" tag="datevn" runat="server" Width="75px" Height="16px" />
                        </div>
                       
                    </td>
                </tr>
                <tr>
                    <td class="crmcell right">Phường:</td>
                    <td class="crmcell">
                        <div class="left">
                            <asp:DropDownList ID="ddlPHUONG" runat="server">
                            </asp:DropDownList>
                        </div>
                        <div class="left">
                            <strong>Khu vực</strong>
                        </div>
                        <div class="left">
                            <asp:DropDownList ID="ddlKHUVUC" runat="server" />
                        </div>
                        <div class="left">
                        </div>
                        <div class="left">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="crmcell right">
                            <strong>Người lập</strong>
                        </td>
                    <td class="crmcell">
                            <asp:TextBox ID="txtNguoiLap" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td class="crmcell right"></td>
                    <td class="crmcell">
                        <div class="left">
                            <asp:Button ID="btnBaoCao" runat="server" OnClick="btnBaoCao_Click" CssClass="report" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="crmcell" colspan="2">
                        <CR:CrystalReportViewer ID="rpViewer" runat="server" PrintMode="ActiveX" AutoDataBind="true" DisplayGroupTree="False" />
                    </td>
                </tr>
            </tbody>
        </table>
    </div>--%>
</asp:Content>
